3.183 \(\int \frac {(1+x+x^2+x^3)^2}{(1-x^4)^2} \, dx\)

Optimal. Leaf size=7 \[ \frac {1}{1-x} \]

[Out]

1/(1-x)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {1586, 32} \[ \frac {1}{1-x} \]

Antiderivative was successfully verified.

[In]

Int[(1 + x + x^2 + x^3)^2/(1 - x^4)^2,x]

[Out]

(1 - x)^(-1)

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rule 1586

Int[(u_.)*(Px_)^(p_.)*(Qx_)^(q_.), x_Symbol] :> Int[u*PolynomialQuotient[Px, Qx, x]^p*Qx^(p + q), x] /; FreeQ[
q, x] && PolyQ[Px, x] && PolyQ[Qx, x] && EqQ[PolynomialRemainder[Px, Qx, x], 0] && IntegerQ[p] && LtQ[p*q, 0]

Rubi steps

\begin {align*} \int \frac {\left (1+x+x^2+x^3\right )^2}{\left (1-x^4\right )^2} \, dx &=\int \frac {1}{(1-x)^2} \, dx\\ &=\frac {1}{1-x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 7, normalized size = 1.00 \[ -\frac {1}{x-1} \]

Antiderivative was successfully verified.

[In]

Integrate[(1 + x + x^2 + x^3)^2/(1 - x^4)^2,x]

[Out]

-(-1 + x)^(-1)

________________________________________________________________________________________

fricas [A]  time = 0.40, size = 7, normalized size = 1.00 \[ -\frac {1}{x - 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3+x^2+x+1)^2/(-x^4+1)^2,x, algorithm="fricas")

[Out]

-1/(x - 1)

________________________________________________________________________________________

giac [A]  time = 0.21, size = 7, normalized size = 1.00 \[ -\frac {1}{x - 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3+x^2+x+1)^2/(-x^4+1)^2,x, algorithm="giac")

[Out]

-1/(x - 1)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 8, normalized size = 1.14 \[ -\frac {1}{x -1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^3+x^2+x+1)^2/(-x^4+1)^2,x)

[Out]

-1/(x-1)

________________________________________________________________________________________

maxima [A]  time = 1.30, size = 7, normalized size = 1.00 \[ -\frac {1}{x - 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3+x^2+x+1)^2/(-x^4+1)^2,x, algorithm="maxima")

[Out]

-1/(x - 1)

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 7, normalized size = 1.00 \[ -\frac {1}{x-1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x + x^2 + x^3 + 1)^2/(x^4 - 1)^2,x)

[Out]

-1/(x - 1)

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 5, normalized size = 0.71 \[ - \frac {1}{x - 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**3+x**2+x+1)**2/(-x**4+1)**2,x)

[Out]

-1/(x - 1)

________________________________________________________________________________________